package com.study01;

import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.lang.reflect.Array;
import java.util.Arrays;

public class Demo04 {
    public static void main(String[] args) {
        FileInputStream fis =null;
        try {
           fis = new FileInputStream("d:/a.txt");
           int num;
            while ((num = fis.read()) != -1){
                System.out.println(num);
            }
        } catch (FileNotFoundException e) {
            e.printStackTrace();
        } catch (IOException e) {
            e.printStackTrace();
        }finally {

            try {
                fis.close();
            } catch (IOException e) {
                e.printStackTrace();
            }
        }
    }
}
